package com.son.factory;

import com.son.controller.InterStudentController;
import com.son.controller.StudentControllerImpl;
import com.son.dao.InterStudentDao;
import com.son.dao.StudentDaoImpl;
import com.son.service.InterStudenService;
import com.son.service.StudentServiceImpl;

/*
工厂类
生产对象
 */
public class StudentFactory {

    //生产 StudentController
    public static InterStudentController getStudentController(){
        return  new StudentControllerImpl();
    }
    //生产 StudentService
    public static InterStudenService getStudentService(){
        return new StudentServiceImpl();
    }
    //生产 StudentDao
    public static InterStudentDao getStudentDao(){
        return new StudentDaoImpl();
    }

}